/*
 * HomeDecorateHolder.java
 * business
 *
 * Created by ChenTao on 2017/1/16.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.ImageView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;
import com.yidiandao.business.ui.widget.view.RatioLayout;

/** 首页-顶部-图片装饰-ViewHolder */
public class HomeDecorateImageHolder extends ViewHolder {

    public RatioLayout rootLayout;

    public ImageView ivImage;

    @Override
    protected void initView(View rootView) {
        rootLayout = (RatioLayout) rootView.findViewById(R.id.root_layout);
        ivImage = (ImageView) rootView.findViewById(R.id.iv_image);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_home_decorate_image;
    }
}
